############################################################################
# Copyright (c) 2016 Saint Petersburg State University
# All Rights Reserved
# See file LICENSE for details.
############################################################################

project(spades-kmercount CXX)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})


add_executable(spades-kmercount
               main.cpp)

add_executable(spades-read-filter
               read_filter.cpp)

add_executable(spades-kmer-estimating
               kmer_estimating.cpp)

target_link_libraries(spades-kmercount common_modules ${COMMON_LIBRARIES})
target_link_libraries(spades-read-filter common_modules ${COMMON_LIBRARIES})
target_link_libraries(spades-kmer-estimating common_modules ${COMMON_LIBRARIES})


if (SPADES_STATIC_BUILD)
  set_target_properties(spades-kmercount PROPERTIES LINK_SEARCH_END_STATIC 1)
  set_target_properties(spades-read-filter PROPERTIES LINK_SEARCH_END_STATIC 1)
endif()

install(TARGETS spades-kmercount
        DESTINATION bin
        COMPONENT runtime)

install(TARGETS spades-read-filter
        DESTINATION bin
        COMPONENT runtime)

install(TARGETS spades-kmer-estimating
        DESTINATION bin
        COMPONENT runtime)